package com.pc.feign;

import com.pc.common.FeignFailBack;
import com.pc.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "student", fallback = FeignFailBack.class)
public interface StudentFeign {
    @GetMapping("/student/getAllStudent")
    Result getStudentName();

    @GetMapping("/student/findStudentById/{id}")
    Result getStudentById(@PathVariable("id") Long id);
}
